package cn.itcast.n3_Java线程;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * Test01_创建线程1_继承Thread类
 * </p>
 *
 * @author flyduck
 * @since 2024-08-21
 */
@Slf4j(topic = "c.Test01_创建线程1_继承Thread类")
public class Test01_创建线程1_继承Thread类 {

    public static void main(String[] args) {

        Thread t = new Thread(){
            @Override
            public void run() {
                log.debug("running");
            }
        };
        t.setName("t1");

        t.start();

        log.debug("running");
    }
}
